import axios from '@/api'
import { IField, IPlant } from '@/common/services/famer'

export interface IQuery {
  s_a_id: string;
}

class ExeclExportServices {
  constructor() { }

  /**
   * 导出确权面积与粮食种植面积数据
   *
   * @param IQuery data
   * @returns
   * @memberof ExeclExportServices
   */
  exportFieldList(data: IQuery) {
    return axios.post<unknown, Api.ResponseListOptions>('/btbusiness/query/export-field-list', data)
  }

  /**
   * 导出补贴名单与资金分配表
   *
   * @param IQuery data
   * @returns
   * @memberof ExeclExportServices
   */
  exportPayList(data: IQuery) {
    return axios.post<unknown, Api.ResponseListOptions>('/btbusiness/query/export-pay-list', data)
  }

  /**
   * 导出确权面积与粮食种植面积数据
   *
   * @param IQuery data
   * @returns
   * @memberof ExeclExportServices
   */
  exportPayCountList(data: IQuery) {
    return axios.post<unknown, Api.ResponseListOptions>('/btbusiness/query/export-pay-count-list', data)
  }
}

export const execlExportServices = new ExeclExportServices()

export default ExeclExportServices